package com.ukee.birthday.modules.service;

import com.ukee.birthday.modules.entity.StaffEntity;
import com.ukee.birthday.modules.entity.SysUserEntity;
import com.ukee.birthday.modules.entity.SysUserTokenEntity;

import java.util.Set;

/**
 * shiro权限相关接口
 */
public interface ShiroService {

    /**
     * 获取权限列表
     * @return
     */
    Set<String> getUserPermissions(long userId);

    SysUserTokenEntity queryByToken(String token);

    /**
     * 根据用户ID，查询用户
     * @param userId
     * @return
     */
    SysUserEntity queryUser(Long userId);


    /**
     * 根据用户ID，查询用户
     * @param userId
     * @return
     */
    StaffEntity queryStaff(Long userId);
}
